<?php
require_once("lib/db_connection.php");
$query_hauler = "SELECT hauler_name,hauler_id FROM hauler_tbl WHERE company_id='".$_SESSION['company_id']."'";
$result_hauler = mysql_query($query_hauler) or die("SELECT HAULER ".mysql_error());
       

$arr_string = "";
while($row_hauler = mysql_fetch_array($result_hauler))
{
 $name = $row_hauler['hauler_name'];
 $id = $row_hauler['hauler_id'];
 
 $arr_string .= "new Array('".$name."','".$id."'),";
}
$arr_string = substr($arr_string,0,-1);
echo "new Array($arr_string)";
?>
